/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bd2_xml.persistencia;

import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author R3oLoN
 */
public class Inserir {
    
    public static boolean sqlLivre(String sql) throws  IOException{
        boolean teste=false;
        Connection conn = null;    
        conn = Conexao.getConnection();        
        java.sql.Statement st;
        try {
            st = conn.createStatement();
            teste = st.execute(sql);
            conn.close();
            st.close();
        } catch (SQLException ex) {
            Logger.getLogger(Inserir.class.getName()).log(Level.SEVERE, null, ex);
        }
          return teste;
    }
    
}
